home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_12_08
/
plauger
/
ws.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-06-09
|
327b
|
17 lines
-------------------------- Listing 3: The manipulator ws ---------
// ws -- ws(istream&)
#include <istream>
istream& ws(istream& is)
{ // eat white space
ios::fmtflags flagsav = is.flags();
is.unsetf(ios::skipws);
_TRY_IO_BEGIN
is.ipfx();
is.isfx();
_CATCH_IO_END
is.flags(flagsav);
return (is);
}